<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load tags %}
{% blog_init %}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="cn">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <meta name='Generator' content='WaylyBlog'/>
        <meta name='Author' content='{{env_author.name}}'/>
        <meta name='Description' content='{{env_blog.description}},{{env_author.description}}'/>
        <meta name='Keywords' content='{% for tag in env_tags %}{{tag.name}},{%endfor%}'/>
        <script type='text/javascript' src='/static/jquery.js'></script>
        <link rel='stylesheet' href='/static/base.css'></link>
        <script type='text/javascript'>
            no_sidebar = false;
        </script>

        {% block extra_head %}
        extra_head
        {% endblock %}

        <script type='text/javascript'>
            $(document).ready(function(){
                if( !no_sidebar ){
                    $('#sidebar').load('/sidebar');
                }else{
                    $('#sidebar').remove();
                }

            });
        </script>

        <script type='text/javascript' src='/static/base.js'> </script>
    </head>
    <body>
        <div id='container'>
        <div id='main_content'>
         <div id='banner'>
             <h1>{{env_blog.name}}</h1>
             <div class='info'>{{env_blog.description}}</div>
            <ul id='nav'>
                <li><a href='/'>Home</a></li>
            </ul>
            <div class='clear'></div>
        </div>
            <div id='sidebar'>
            </div><!-- #sidebar -->
           <div class='left'>
                {% block content %}
                    content
                {% endblock %}

                <div class='clear'></div>
            </div><!-- .left -->
            <div class='clear'></div>
             <div id='footer'>
                <div id='friend_link'>
                    <h2 class='revers'><span class='en'>LINKS | </span>友情链接</h2>
                    <a href='http://baye.wayly.net' title='Wayly.baye 的博客'><img src='/static/wayly.png' height='40' alt='Wayly'></img></a>
                </div>
            </div>

       </div><!--  #main_content -->

        <div id='about'>
            {{env_blog.name}} &nbsp;--&nbsp; <a href='/archive'>发表新文章</a>&nbsp;<a href='/admin'>管理</a><br/>
             <p>Powered by <a href='http://code.google.com/p/plite-blog/'>pLite :)</a> &nbsp;由 Google AppEngine 强力驱动 </p>
            
        </div>
        
    </div><!-- #container -->

    </body>
</html>
